Skip to content

chore: merge relapse history endpoint for user progress tracking#34

Merged
salmanabdurrahman merged 3 commits intomainfrom
dev
Oct 25, 2025
Merged

chore: merge relapse history endpoint for user progress tracking#34
salmanabdurrahman merged 3 commits intomainfrom
dev

Conversation

@salmanabdurrahman
Copy link
Copy Markdown
Member

Summary

Merge the latest development changes into the main branch, introducing the relapse history API for user progress tracking.

Highlights

  • Added /api/v1/routine/relapses endpoint to retrieve relapse history.
  • Integrated new service and controller logic under the routine module.
  • Prepared data model and routing for future dashboard integration.

Impact

  • Users (and admin dashboards) can now fetch relapse data.
  • Enhances progress analytics for MVP demo and future insights.

Notes

Ensure auth middleware is properly restored once demo phase ends.

- implement `findUserRelapses` function in `routine.service.ts` to query relapse data from the database
- create `getRelapsesHandler` in `routine.controller.ts` to handle the request and response
- add `/relapses` route in `routine.routes.ts` to expose the endpoint
- add GET /relapses endpoint under /api/v1/routine
- implement logic to fetch relapse data from database
feat(routine): add endpoint to retrieve user relapse history
@salmanabdurrahman salmanabdurrahman merged commit f484425 into main Oct 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant